package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 服务评价管理对象 service_evaluate
 * 
 * @author gyz
 * @date 2024-09-11
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "service_evaluate", shards = 3, replicas = 2)
public class ServiceEvaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @Id
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @Field(name = "userId",type = FieldType.Long)
    private Long userId;

    @Field(name = "nickName", type = FieldType.Text, analyzer = "ik_max_word")
    private String nickName;

    /** 店铺编号 */
    @Excel(name = "店铺编号")
    @Field(name = "mId", type = FieldType.Long)
    private Long mId;


    private String shopName;

    /** 订单编号 */
    @Excel(name = "订单编号")
    @Field(name = "orderId", type = FieldType.Keyword)
    private String orderId;

    /** 服务类别id编号 */
    @Excel(name = "服务类别id编号")
    @Field(name = "serviceId", type = FieldType.Keyword)
    private String serviceId;

    private String serviceTypeName;

    /** 星级 */
    @Excel(name = "星级")
    @Field(name = "rate", type = FieldType.Long)
    private Long rate;

    /** 评价图片 */
    @Excel(name = "评价图片")
    @Field(name = "imgs", type = FieldType.Keyword, index = false)
    private String imgs;

    /** 评价内容 */
    @Excel(name = "评价内容")
    @Field(name = "content", type = FieldType.Text, analyzer = "ik_max_word")
    private String content;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Field(name = "time", type = FieldType.Date)
    private Date time;

    /** 删除状态 */
    @Excel(name = "删除状态")
    @Field(name = "deleted", type = FieldType.Long)
    private Long deleted;

}
